// Visual_BuilderDlg.h : header file
//

#if !defined(AFX_VISUAL_BUILDERDLG_H__48339675_7122_4EC7_8BD2_0D311034EDE5__INCLUDED_)
#define AFX_VISUAL_BUILDERDLG_H__48339675_7122_4EC7_8BD2_0D311034EDE5__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ApmsApi.h"
#include "XlsObj.h"
#include "Tianwan.h"
#include "stdio.h"
#include "Uti_Tianwan.h"
#include "Twn_TNTBuilder.h"



#define TNT_DEFAULT_SERVER	_T("")
#define XLS_DEFAULT_PATH	_T("D:\\Tianwan\\Config\\Xls\\Tianwan_xls_conf.xls")
#define MSGBOX_TITLE_V		_T("DAFS Builder")
#define LOG_DEFAULT_PATH	_T("D:\\TenoreNT\\Logs\\Twn_VisualBuilderLog.txt")
/////////////////////////////////////////////////////////////////////////////
// CVisual_BuilderDlg dialog

class CVisual_BuilderDlg : public CDialog
{
// Construction
public:
	CVisual_BuilderDlg(CWnd* pParent = NULL);	// standard constructor
	TCHAR	msg[128];
	DWORD	m_clientNum;
	int		m_loggedUser;
	bool	ActivateControls(void);
	bool	CheckUser(void);

	LRESULT OnTntBuild(WPARAM wParam, LPARAM lParam);
// Dialog Data
	//{{AFX_DATA(CVisual_BuilderDlg)
	enum { IDD = IDD_VISUAL_BUILDER_DIALOG };
	CComboBox	m_cmbZones;
	CButton	m_chkChB;
	CButton	m_chkChA;
	CButton	m_chkKeep;
	CButton	m_OpenXlsButton;
	CButton	m_ConnectButton;
	CButton	m_FileViewButton;
	CButton	m_OpenLog;
	CProgressCtrl	m_ProgBar;
	CButton	m_Acquire;
	CListBox	m_ListEcho;
	CString	m_PathXls;
	CString	m_Server;
	BOOL	m_CheckZone;
	BOOL	m_CheckCell;
	BOOL	m_CheckObjt;
	CString	m_PathLog;
	BOOL	m_CheckMacro;
	BOOL	m_CheckMicro;
	BOOL	m_CheckOseq;
	BOOL	m_CheckTool;
	BOOL	m_CheckPhas;
	BOOL	m_StartCond;
	BOOL	m_TcSeq;
	BOOL	m_ChkInfi;
	BOOL	m_ChkMntn;
	BOOL	m_TcErrCodes;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVisual_BuilderDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CVisual_BuilderDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnOpenXls();
	afx_msg void OnConnect();
	afx_msg void OnExit();
	afx_msg void OnAcquire();
	afx_msg void OnOpenLog();
	afx_msg void OnFileview();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CXlsObj	*excelObj;
	int		excelInst;
	BOOL	ApmsActive;
	BOOL	XlsActive;
	void	echo(BOOL);
	BOOL	fillZones(void);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_VISUAL_BUILDERDLG_H__48339675_7122_4EC7_8BD2_0D311034EDE5__INCLUDED_)
